package com.example.shirotest.entry;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Result {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer sid;
    @TableField(exist = false)
    private String sidstr;
    private String title;
    private String url;
    private String content;
    private String img;
    private String remark;
    private String timecreate;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date time;
}
